package com.ruoyi.internet.controller;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.internet.domain.vo.MyPublishVO;
import com.ruoyi.internet.service.MyInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: cjie
 * @description:
 * @date: 2021/8/25
 */
@Api(tags = "我的信息")
@RestController
@RequestMapping("/myInfo")
public class MyInfoController extends BaseController {
    @Autowired
    private MyInfoService myInfoService;

    /**
     * 我的发布
     */
    @ApiOperation(value="我的发布", notes="我的发布")
    @GetMapping("/publish")
    public TableDataInfo list(MyPublishVO myPublishVO) {
        startPage();
        return getDataTable(myInfoService.selectMyPublishList(myPublishVO));
    }
}
